package net.easyjava.framework;

/**
 * Created by wxnacy on 16/6/27.
 */
public class BaseConstants {

    public static final String URL_ADMIN_ROOT = "/";
    public static final String URL_ADMIN_INDEX_HTML = "/index.html";
    public static final String URL_ADMIN_LOGIN_HTML = "/login.html";

    public static final String ERROR_PUBLIC_PARAMS = "参数有误";
    public static final String ERROR_PUBLIC_USER_UNLOGIN = "您还没有登录,请先登录";
    public static final String ERROR_NO_PERMISSION =  "您没有访问权限";


    public static final int RESOURCE_TYPE_TEXT = 1;//汉字
    public static final int RESOURCE_TYPE_IMAGE = 2;//图片
    public static final int RESOURCE_TYPE_AUDIO = 3;//语音
    public static final int RESOURCE_TYPE_MEDIA = 4;//视频
    public static final int RESOURCE_TYPE_LINK = 5;//外链

    /**
     * 支付状态
     */
    public enum PayStatus{
        SUCCESS,WAIT,FAIL,NONE
        ;
    }

    /**
     * 支付方式
     */
    public enum PayType{
        APP,NATIVE
        ;
    }

    /**
     * 支付来源
     */
    public  enum PaySource{
        WX,ALI,IOS
        ;
    }

    /**
     * 第三方等来源
     */
    public enum OpenSource{
        WX,WB,QQ,TT,GG,FB
        ;
    }


    /**
     * 接口请求来源
     */
    public enum ApiSource{
        WAP,//手机WAP站
        PC,//电脑端
        IPHONE,//
        IPAD,
        ANDROID_MOBILE,
        ANDROID_PAD,
        ANDROID_OTT,
        ;
    }
}
